package org.ko.core.web.auth;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.ko.core.web.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 测试用
 * TestAct
 * @author zengxm 药膏
 * @date 2014-9-17
 * @version 1.0.0
 */
@Controller
@RequestMapping("/test")
public class TestAct extends BaseController{

	@Override
	protected String getTemplatePath() {
		return null;
	}

	@RequiresPermissions("test.permission")
	@RequestMapping("permission")
	public void permission(){
		System.out.println("可以访问！");
	}
	
	@RequiresPermissions("test.save")
	@RequestMapping("save")
	public void save(){
		System.out.println("可以访问！");
	}
}